home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_tem_mazemusiccue.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  66 lines

  1. # Jones 3D Cog Script
  2. #
  3. # TEM_MazeMusicCue.cog
  4. #
  5. # [TRM]
  6. #
  7. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  8. # ========================================================================================
  9.  
  10. symbols
  11.  
  12.     message     entered
  13.     
  14.     thing       player      local
  15.     
  16.     sector      shore_Door
  17.     sector      shore_Shark
  18.     sector      shore_Boulder
  19.     
  20.     sound       mus_Relief=mus_gen_indyrelief.wav       local
  21.     
  22.     int         bin_Tiki=53         local
  23.     int         bin_Shark=85        local
  24.     
  25.     int         played_Door=0       local
  26.     int         played_Shark=0      local
  27.     int         played_Boulder=0    local
  28.         
  29. end
  30.  
  31. # ========================================================================================
  32.  
  33. code
  34.  
  35. entered:
  36.  
  37.     player = GetLocalPlayerThing();
  38.     
  39.     # player reaches shore_Shark
  40.     if((GetSenderRef() == shore_Shark) && (played_Shark == 0))
  41.     {
  42.         played_Shark = 1;
  43.         PlaySoundLocal(mus_Relief, 1.0, 0.0, 0x0, 0);
  44.     }
  45.     
  46.     # player reaches shore_Boulder with shark key
  47.     if((GetSenderRef() == shore_Boulder) && (GetInv(player, bin_Shark) > 0) && (played_Boulder == 0))
  48.     {
  49.         played_Boulder = 1;
  50.         PlaySoundLocal(mus_Relief, 1.0, 0.0, 0x0, 0);
  51.     }
  52.     
  53.     # player reaches shore_Door with tiki key
  54.     if((GetSenderRef() == shore_Door) && (GetInv(player, bin_Tiki) > 0) && (played_Door == 0))
  55.     {
  56.         played_Door = 1;
  57.         PlaySoundLocal(mus_Relief, 1.0, 0.0, 0x0, 0);
  58.     }
  59.     
  60.     return;
  61.         
  62. # ========================================================================================
  63.  
  64. end
  65.  
  66.